<div class="citizenships view">
<h2><?php  __('Citizenship');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $citizenship['Citizenship']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Name'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $citizenship['Citizenship']['name']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<ul>
		<li><?php echo $html->link(__('Edit Citizenship', true), array('action' => 'edit', $citizenship['Citizenship']['id'])); ?> </li>
		<li><?php echo $html->link(__('Delete Citizenship', true), array('action' => 'delete', $citizenship['Citizenship']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $citizenship['Citizenship']['id'])); ?> </li>
		<li><?php echo $html->link(__('List Citizenships', true), array('action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('New Citizenship', true), array('action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('List Abiturients', true), array('controller' => 'abiturients', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('New Abiturient', true), array('controller' => 'abiturients', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related Abiturients');?></h3>
	<?php if (!empty($citizenship['Abiturient'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Lastname'); ?></th>
		<th><?php __('Firstname'); ?></th>
		<th><?php __('Surname'); ?></th>
		<th><?php __('Photo'); ?></th>
		<th><?php __('Gender Id'); ?></th>
		<th><?php __('Birthdate'); ?></th>
		<th><?php __('Citizenship Id'); ?></th>
		<th><?php __('Passport Ser'); ?></th>
		<th><?php __('Passport Num'); ?></th>
		<th><?php __('Passport Data'); ?></th>
		<th><?php __('Passport Birthplace'); ?></th>
		<th><?php __('Region Id'); ?></th>
		<th><?php __('Adress'); ?></th>
		<th><?php __('Schoolflanguage Id'); ?></th>
		<th><?php __('Schoolgraduated'); ?></th>
		<th><?php __('Educationdoctype Id'); ?></th>
		<th><?php __('Originaleducationdoc'); ?></th>
		<th><?php __('Educationdocdata'); ?></th>
		<th><?php __('Phone'); ?></th>
		<th><?php __('Mobile'); ?></th>
		<th><?php __('Email'); ?></th>
		<th><?php __('Inn'); ?></th>
		<th><?php __('Insurance'); ?></th>
		<th><?php __('Pension Certificate'); ?></th>
		<th><?php __('Inoculations'); ?></th>
		<th><?php __('Moreinfo'); ?></th>
		<th><?php __('Prepared'); ?></th>
		<th><?php __('Approved'); ?></th>
		<th><?php __('Enrolled'); ?></th>
		<th><?php __('Canceled'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('Modified'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($citizenship['Abiturient'] as $abiturient):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $abiturient['id'];?></td>
			<td><?php echo $abiturient['lastname'];?></td>
			<td><?php echo $abiturient['firstname'];?></td>
			<td><?php echo $abiturient['surname'];?></td>
			<td><?php echo $abiturient['photo'];?></td>
			<td><?php echo $abiturient['gender_id'];?></td>
			<td><?php echo $abiturient['birthdate'];?></td>
			<td><?php echo $abiturient['citizenship_id'];?></td>
			<td><?php echo $abiturient['passport_ser'];?></td>
			<td><?php echo $abiturient['passport_num'];?></td>
			<td><?php echo $abiturient['passport_data'];?></td>
			<td><?php echo $abiturient['passport_birthplace'];?></td>
			<td><?php echo $abiturient['region_id'];?></td>
			<td><?php echo $abiturient['adress'];?></td>
			<td><?php echo $abiturient['schoolflanguage_id'];?></td>
			<td><?php echo $abiturient['schoolgraduated'];?></td>
			<td><?php echo $abiturient['educationdoctype_id'];?></td>
			<td><?php echo $abiturient['originaleducationdoc'];?></td>
			<td><?php echo $abiturient['educationdocdata'];?></td>
			<td><?php echo $abiturient['phone'];?></td>
			<td><?php echo $abiturient['mobile'];?></td>
			<td><?php echo $abiturient['email'];?></td>
			<td><?php echo $abiturient['inn'];?></td>
			<td><?php echo $abiturient['insurance'];?></td>
			<td><?php echo $abiturient['pension_certificate'];?></td>
			<td><?php echo $abiturient['inoculations'];?></td>
			<td><?php echo $abiturient['moreinfo'];?></td>
			<td><?php echo $abiturient['prepared'];?></td>
			<td><?php echo $abiturient['approved'];?></td>
			<td><?php echo $abiturient['enrolled'];?></td>
			<td><?php echo $abiturient['canceled'];?></td>
			<td><?php echo $abiturient['created'];?></td>
			<td><?php echo $abiturient['modified'];?></td>
			<td class="actions">
				<?php echo $html->link(__('View', true), array('controller' => 'abiturients', 'action' => 'view', $abiturient['id'])); ?>
				<?php echo $html->link(__('Edit', true), array('controller' => 'abiturients', 'action' => 'edit', $abiturient['id'])); ?>
				<?php echo $html->link(__('Delete', true), array('controller' => 'abiturients', 'action' => 'delete', $abiturient['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $abiturient['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $html->link(__('New Abiturient', true), array('controller' => 'abiturients', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
